# -*- coding:utf8 -*- #
# -----------------------------------------------------------------------------------
# ProjectName:  smalleel-api-tools
# FileName:     smalleelApi.py
# Author  :     
# Datetime:     2023/3/28 9:38
# Description：地址和接口配置
# -----------------------------------------------------------------------------------
from common.util.configUtil.configUtil import ConfigUtil

config = ConfigUtil()
ip = config.get_ipUrl()


class MerchantApi:
    # 小程序项目切换
    switchMerchantPro = f"{ip}/platform-group/common/auth/system/switchOrgByApplet"
    # 添加基站
    addCollector = f"{ip}/platform-electricity-manage/wuye/collector/addCollector"
    # 添加电表
    addDb = f"{ip}/platform-electricity-manage/wuye/dbxx/add"
    # 小程序登陆
    merchantLogin = f"{ip}/platform-group/common/auth/loginPwd"
    # 添加水表
    addWaterDb = f"{ip}/platform-water-manage/applet/water/device/insertWaterDevice"
    # 添加水表基站
    addWaterCollector = f"{ip}/platform-water-manage/applet/base/device/insertBaseDevice"
    # 小程序替换电表
    replaceDb = f"{ip}/platform-electricity-manage/wuye/dbxx/replace"
    # 小程序更新电价
    merchantUpdatePrice = f"{ip}/platform-electricity-manage/wuye/djxx/updatePrice"


class PlatformApi:
    # 平台基站注册
    registerCollector = f"{ip}/platform-cloud-manage/api/devCollection/add"
    # 平台批量新增电表
    registerMeter = f"{ip}/platform-cloud-manage/api/device/batchAdd"
    # 平台获取设备服务费
    proInfo = f"{ip}/platform-cloud-manage/api/pro/getProDeviceSrvfee"
    # 平台仓库入库
    putStock = f"{ip}/platform-cloud-manage/api/stockManage/putStock"
    # 平台仓库出库
    outStock = f"{ip}/platform-cloud-manage/api/stockManage/outStock"
    # 平台登陆
    platformlogin = f"{ip}/platform-cloud-manage/api/login/doLogin"
    # 平台查项目出入库统计
    platformstock = f"{ip}/platform-cloud-manage/api/stockManage/getOutOrInStockReport"
    # 平台获取项目验收数和服务费
    devicesrvfee = f"{ip}/platform-cloud-manage/api/pro/getProDeviceSrvfee"
    # 平台未验收项目清单
    notCheckList = f"{ip}/platform-cloud-manage/api/pro/getProNotCheckAcceptListRes"
    # 获取systemTree
    systemTree = f"{ip}/platform-group/api/menu/integrate/systemTree"
    # 获取menuTree
    menuTree = f"{ip}/platform-group/api/menu/integrate/menuTree"


class SmalleelApi:
    # 项目经管-物业获取服务费账单
    billdetail = f"{ip}/platform-electricity-manage/api/customer/getBillDetailList"
    # 电表物业登陆
    smalleellogin = f"{ip}/platform-group/common/auth/property/login"
    # web项目切换
    switchSmalleelPro = f"{ip}/platform-group/common/auth/system/switchOrg"
    # 项目经管-表计管理更新电价
    updatePrice = f"{ip}/platform-electricity-manage/api/dbxx/updatePrice"
    # 项目经管-表计管理分组更新电价
    batchUpdatePrice = f"{ip}/platform-electricity-manage/api/dbxx/batchUpdatePrice"
    # 大集成-工作台验收数据汇总
    acceptRecordSum = f"{ip}/platform-group/api/checkAccept/selectCheckAcceptRecordSum"
    # 项目经管-余额退补-电表计算使用量
    costdetail = f"{ip}/platform-electricity-manage/api/balance/costDetail"
    # 项目经管-电表执行余额退补
    dbretrieve = f"{ip}/platform-electricity-manage/api/balance/retrieve"
    # 项目经管-余额退补-退补详情
    balancedetail = f"{ip}/platform-electricity-manage/api/balance/getDetail"


if __name__ == '__main__':
    print(SmalleelApi.smalleellogin)
